{extends 'base/site2.html'}
{block name="page_header"}{include file="common/header.html" inline}{/block}
{block name="page_nav"}{include file="common/slide-nav.html" inline}{/block}
{block name="page_styles"}
<link rel="stylesheet" type="text/css" href="/css/mediation/caserecord/index.css" />
{/block}
{block name="page_scripts"}
    <script type="text/javascript" src="/js/mediation/uaction/index.min.js" init="mediation/uaction/index"></script>

{/block}
{block name="page_section"}
    <ol class="breadcrumb pad-no">
        <li><a href="/">纠纷批量化解平台</a></li>
        <li class="active">管理中心-系统操作记录</li>
    </ol>
    <div class="sessionPage">
        <div class="page-header">
            <span class="line"></span>
            <strong class="tit">系统操作记录</strong>
    </div>
        <div class="form-group col-lg-4 ui-select">
            <label for="exampleInputName2" style="width: 70px;" class="col-lg-1 col-md-2 col-sm-2 col-xs-2 control-label">记录时间：</label>
            <div class="col-lg-4 col-md-2 col-sm-3 col-xs-4">
                <input type="text" readonly name="start_time" id="startTime" role-ele="startTime" class="form-control " value="{if isset($last['start_time']) && $last['start_time'] }{$last['start_time']}{else}{date("Y-m-d")}{/if}" data-valid="notempty" />

            </div>
            &nbsp;&nbsp;---&nbsp;&nbsp;
            <div class="col-lg-4 col-md-2 col-sm-3 col-xs-4">

                <input type="text" readonly name="end_time" id="endTime"  role-ele="endTime" class="form-control " value="{if isset($last['end_time']) && $last['end_time'] }{$last['end_time']}{else}{date("Y-m-d")}{/if}" data-valid="notempty" />
            </div>
        </div>
        <div class="form-group col-lg-3 ui-select">
            <label for="exampleInputName2" style="width: 70px;"  class="col-sm-3 control-label">操作类型:</label>
            <div class="col-sm-8">
                <select class="form-control" name="action_type" role-ele="action_type">
                    <option value="999" {if isset($last['action_type']) && $last['action_type'] == 999 }selected="selected"{/if}>全部</option>
                    {foreach from=$action_type_arr key=key item=item}
                        <option value="{$key}" {if isset($last['action_type']) && $last['action_type'] == $key }selected="selected"{/if}>{$item}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="col-lg-1 textright">
            <button type="button" class="btn btn-primary" role-click="filter">查询</button>
        </div>
    
        <table class="table table-bordered table-striped table-hover">
            <thead>
                <tr>
                    <th scope="col">操作类型</th>
                    <th scope="col">操作时间</th>
                    <th scope="col">操作人用户名</th>
                    <th scope="col">操作人手机号</th>
                    <th scope="col">操作人类型</th>
                    <th scope="col">操作描述</th>
                    <th scope="col">操作状态</th>
                    <th scope="col">操作IP</th>
                </tr>
            </thead>
            <tbody>
                {if !empty($list)}
                {foreach from=$list item=info}
                    <tr>
                        <td>{$action_type_arr[$info['action_type']]}</td>
                        <td>{$info['action_time']|date_format:"%Y-%m-%d %H:%M:%S"}</td>
                        <td>{if $info['action_uname']}{$info['action_uname']}{else}--{/if}</td>
                        <td>{$info['mobile']}</td>
                        <td>
                            {if $info['action_group']}
                                {if $info['source_type'] == 1}
                                    {$li_role[$info['action_group']]}
                                {else}
                                    {$fc_role[$info['action_group']]}
                                {/if}
                            {else}
                                普通用户
                            {/if}
                        </td>
                        <td title="{$info['action_des']}">{$info['action_des']|truncate:20:"...":true}</td>
                        <td>{$action_res_arr[$info['action_res']]}</td>
                        <td>{$info['action_ip']}</td>
                    </tr>

                    {/foreach}
                {/if}
            </tbody>
        </table>
        {if !empty($list)}
            {include file="base/pagenav.html"  action="/uaction/record_list" pagenum=$curPageNum inline}
        {/if}
    </div>
{/block}